// import "@babel/polyfill";
import Vue from 'vue';
import VueLazyload from 'vue-lazyload';
import Index from '@/index.vue';
import router from '@router/index.js';
import store from '@store/store.js';
import Request from '@ajax/index.js';
import infiniteScroll from 'vue-infinite-scroll';
import Mixin from '@/mixin/index.js';
// import Elements from "@/elements.js";
import Elements from 'element-ui'
// import { Select, Button, Option, OptionGroup, Input, Tree, Dialog, Row, Col } from 'element-ui'

import LoadingSvg from '@assets/icons//loading-bars.svg';
import '@assets/style/reset.scss';
import 'element-ui/lib/theme-chalk/index.css';


Vue.config.productionTip = false;
Vue.prototype._req = new Request();
// Vue.component(Button.name, Button);

Vue.use(Elements)
Vue.use(infiniteScroll);
Vue.use(VueLazyload, { loading: LoadingSvg });
Vue.mixin(Mixin);

new Vue({
    router,
    store,
    render: h => h(Index)
}).$mount('#app');
